
pkgname=ed
pkgver=1.14.2
pkgrel=1
pkgdesc="A POSIX-compliant line editor"
arch=('x86_64')
license=('GPL')
url="https://www.gnu.org/software/ed/"
groups=('base-devel')
depends=('glibc' 'sh')
options=('!emptydirs')
source=("http://mirrors.kernel.org/gnu/ed/${pkgname}-${pkgver}.tar.lz")
md5sums=('273d04778b2a51f7c3cbfcd2001876bf')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/ --mandir=/usr/share/man --infodir=/usr/share/info
  make
}

check() {

  make -C $pkgname-$pkgver check
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install

  cd ${pkgdir}/usr/share/info
  ln ed.info red.info
}

